import { createI18n } from 'vue-i18n'
import cn from './cn'
import en from './en'
import ge from './ge'
import fr from './fr'
import tw from './tw'

const i18n = createI18n({
  locale: localStorage.getItem('lang') || 'tw',
  messages: {
    cn,
    en,
    ge,
    fr,
    tw,
  },
  legacy: false,
  globalInjection: true,
})

export default i18n
